package com.spring.cloud.feign.service;

/**
 * Created by Administrator on 2017/7/14.
 */

import com.spring.cloud.user.dto.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

//@Component
public class RefactorHelloServiceFallback implements RefactorHelloService {
    @Override
    public String hello(@RequestParam("name") String name) {
        return "error";
    }

    @Override
    public User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age) {
        return new User("未知", 0);
    }

    @Override
    public String hello(@RequestBody User user) {
        return "error";
    }
}
